#pragma once
#include "Form1.h"

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;


namespace ItemMgr {

	/// <summary>
	/// Summary for NewItemForm
	///
	/// WARNING: If you change the name of this class, you will need to change the
	///          'Resource File Name' property for the managed resource compiler tool
	///          associated with all .resx files this class depends on.  Otherwise,
	///          the designers will not be able to interact properly with localized
	///          resources associated with this form.
	/// </summary>
	public ref class NewItemForm : public System::Windows::Forms::Form
	{
	public:
		// don't really need a default constructor as far as I can tell.
		NewItemForm(void)
		{
			InitializeComponent();
			ShowDialog();
		}

		NewItemForm(ManagedItemList^ list, Form1^ parent)
		{
			InitializeComponent();
			m_ItemList = list;
			m_ParentForm = parent;
			ShowDialog();

		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~NewItemForm()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::TextBox^  ItemNameBox;
	protected: 
	private: System::Windows::Forms::Label^  NameLabel;
	private: System::Windows::Forms::TextBox^  ItemDescriptionBox;
	private: System::Windows::Forms::Label^  DescriptionLabel;
	private: System::Windows::Forms::Button^  OkButton;
	private: System::Windows::Forms::Button^  CancelButton;
	private: System::Windows::Forms::CheckBox^  PickupBox;
	private: System::Windows::Forms::CheckBox^  InspectBox;
	private: System::Windows::Forms::CheckBox^  RelationshipBox;
	private: ManagedItemList^ m_ItemList;
	private: Form1^  m_ParentForm;



	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->ItemNameBox = (gcnew System::Windows::Forms::TextBox());
			this->NameLabel = (gcnew System::Windows::Forms::Label());
			this->ItemDescriptionBox = (gcnew System::Windows::Forms::TextBox());
			this->DescriptionLabel = (gcnew System::Windows::Forms::Label());
			this->OkButton = (gcnew System::Windows::Forms::Button());
			this->CancelButton = (gcnew System::Windows::Forms::Button());
			this->PickupBox = (gcnew System::Windows::Forms::CheckBox());
			this->InspectBox = (gcnew System::Windows::Forms::CheckBox());
			this->RelationshipBox = (gcnew System::Windows::Forms::CheckBox());
			this->SuspendLayout();
			// 
			// ItemNameBox
			// 
			this->ItemNameBox->Location = System::Drawing::Point(12, 50);
			this->ItemNameBox->Name = L"ItemNameBox";
			this->ItemNameBox->Size = System::Drawing::Size(423, 20);
			this->ItemNameBox->TabIndex = 0;
			this->ItemNameBox->UseWaitCursor = true;
			// 
			// NameLabel
			// 
			this->NameLabel->AutoSize = true;
			this->NameLabel->Location = System::Drawing::Point(9, 34);
			this->NameLabel->Name = L"NameLabel";
			this->NameLabel->Size = System::Drawing::Size(58, 13);
			this->NameLabel->TabIndex = 1;
			this->NameLabel->Text = L"Item Name";
			this->NameLabel->UseWaitCursor = true;
			// 
			// ItemDescriptionBox
			// 
			this->ItemDescriptionBox->Location = System::Drawing::Point(12, 89);
			this->ItemDescriptionBox->Multiline = true;
			this->ItemDescriptionBox->Name = L"ItemDescriptionBox";
			this->ItemDescriptionBox->Size = System::Drawing::Size(423, 69);
			this->ItemDescriptionBox->TabIndex = 2;
			// 
			// DescriptionLabel
			// 
			this->DescriptionLabel->AutoSize = true;
			this->DescriptionLabel->Location = System::Drawing::Point(9, 73);
			this->DescriptionLabel->Name = L"DescriptionLabel";
			this->DescriptionLabel->Size = System::Drawing::Size(83, 13);
			this->DescriptionLabel->TabIndex = 3;
			this->DescriptionLabel->Text = L"Item Description";
			// 
			// OkButton
			// 
			this->OkButton->Location = System::Drawing::Point(48, 187);
			this->OkButton->Name = L"OkButton";
			this->OkButton->Size = System::Drawing::Size(150, 50);
			this->OkButton->TabIndex = 4;
			this->OkButton->Text = L"OK";
			this->OkButton->UseVisualStyleBackColor = true;
			this->OkButton->Click += gcnew System::EventHandler(this, &NewItemForm::OkButton_Click);
			// 
			// CancelButton
			// 
			this->CancelButton->Location = System::Drawing::Point(253, 187);
			this->CancelButton->Name = L"CancelButton";
			this->CancelButton->Size = System::Drawing::Size(150, 50);
			this->CancelButton->TabIndex = 5;
			this->CancelButton->Text = L"Cancel";
			this->CancelButton->UseVisualStyleBackColor = true;
			this->CancelButton->Click += gcnew System::EventHandler(this, &NewItemForm::CancelButton_Click);
			// 
			// PickupBox
			// 
			this->PickupBox->AutoSize = true;
			this->PickupBox->Location = System::Drawing::Point(26, 164);
			this->PickupBox->Name = L"PickupBox";
			this->PickupBox->Size = System::Drawing::Size(79, 17);
			this->PickupBox->TabIndex = 6;
			this->PickupBox->Text = L"Pickupable";
			this->PickupBox->UseVisualStyleBackColor = true;
			// 
			// InspectBox
			// 
			this->InspectBox->AutoSize = true;
			this->InspectBox->Location = System::Drawing::Point(172, 164);
			this->InspectBox->Name = L"InspectBox";
			this->InspectBox->Size = System::Drawing::Size(81, 17);
			this->InspectBox->TabIndex = 7;
			this->InspectBox->Text = L"Inspectable";
			this->InspectBox->UseVisualStyleBackColor = true;
			// 
			// RelationshipBox
			// 
			this->RelationshipBox->AutoSize = true;
			this->RelationshipBox->Location = System::Drawing::Point(324, 164);
			this->RelationshipBox->Name = L"RelationshipBox";
			this->RelationshipBox->Size = System::Drawing::Size(106, 17);
			this->RelationshipBox->TabIndex = 8;
			this->RelationshipBox->Text = L"Has Relationship";
			this->RelationshipBox->UseVisualStyleBackColor = true;
			// 
			// NewItemForm
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(447, 249);
			this->Controls->Add(this->RelationshipBox);
			this->Controls->Add(this->InspectBox);
			this->Controls->Add(this->PickupBox);
			this->Controls->Add(this->CancelButton);
			this->Controls->Add(this->OkButton);
			this->Controls->Add(this->DescriptionLabel);
			this->Controls->Add(this->ItemDescriptionBox);
			this->Controls->Add(this->NameLabel);
			this->Controls->Add(this->ItemNameBox);
			this->ForeColor = System::Drawing::SystemColors::ControlText;
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedToolWindow;
			this->Name = L"NewItemForm";
			this->RightToLeft = System::Windows::Forms::RightToLeft::No;
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
			this->Text = L"Enter New Item Info";
			this->Load += gcnew System::EventHandler(this, &NewItemForm::NewItemForm_Load);
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
	private: System::Void NewItemForm_Load(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void CancelButton_Click(System::Object^  sender, System::EventArgs^  e) {
				 this->Close();
			 }
private: System::Void OkButton_Click(System::Object^  sender, System::EventArgs^  e);

};
}
